package com.example.quartz.module.sms;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.example.quartz.common.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

/**
 * @author: wlp
 * @description: 描述：定时任务日志
 * @projectName: QuartzTaskLog
 * @date: 2019/10/11
 * @version: V1.0.0
 */
@SuperBuilder
@Setter
@Getter
@TableName("sms_quartz_task_log")
@ApiModel("定时任务日志")
public class QuartzTaskLog extends BaseBean {

    /**
     * 任务ID
     */
    @TableField("quartz_id")
    private Long quartzId;
    /**
     * 定时任务名称
     */
    @TableField("quartz_name")
    private String quartzName;
    /**
     * 定制任务执行类
     */
    @TableField("target_bean")
    private String targetBean;
    /**
     * 定时任务执行方法
     */
    @TableField("target_method")
    private String targetMethod;
    /**
     * 执行参数
     */
    @TableField("params")
    private String params;
    /**
     * 任务状态
     */
    @TableField("quartz_status")
    private Integer quartzStatus;
    /**
     * 异常消息
     */
    @TableField("error_info")
    private String errorInfo;
    /**
     * 执行时间
     */
    @TableField("execution_time")
    private Long executionTime;

    /**
     * 备注
     */
    @TableField(value = "remarks", strategy = FieldStrategy.IGNORED)
    @ApiModelProperty(hidden = true)
    protected String remarks = "备注";
}
